home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: Borland should be ashamed.  My experience with BC5.0.
  5. Date: 19 Apr 1996 10:38:52 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l8j3cINNfbr@keats.ugrad.cs.ubc.ca>
  8. References: <4l6d1b$219@linet06.li.net>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4l6d1b$219@linet06.li.net>, Bob Silvern <bsilvern@li.net> wrote:
  12.  >The problem occurs with all projects on my system.  For example,
  13.  >windows/examples/cmdlg/cmdlg.ide.
  14.  >The steps to demonstrate problems 1 and 2 previously described are:
  15.  >  1) Open an editor window containing cmdlg.c.  
  16.  >  2) Maximize the window and place the cursor at the end of a line of text.
  17.  >Note the text left of the cursor because it will get deleted later.
  18.  >  3) View, Globals.
  19.  >  4) Place the cursor in the Search box. (Note that alt-h doesn't put the
  20.  >cursor there as implied by the underlined h in "Search".  This is another bug
  21.  >which I neglected to mention.)
  22.  >  5) Type "w".
  23.  >  6) 7 types and 1 function are displayed.  The 1 function is "int
  24.  >WinMain(HINSTANCE__ *, HINSTANCE__ *,signed char *,int)".   So far, so good.
  25.  >  7) Now type "i" so that the Search box reads "wi".  All 8 items are erased
  26.  >from the display, including WinMain, which of course should still be visible.
  27.  >This is problem #1.
  28.  >  8) Now hit the backspace key a few times.  The characters in the search box
  29.  >are not deleted.  Now look at the editor window.  The backspace key was
  30.  >deleting the characters in the editor window, not the Search box.  This is
  31.  >problem #2.  For 3 days I was unjustly accusing my cat of walking on the
  32.  >keyboard as characters seemed to randomly disappear.  She has vowed (meowed)
  33.  >never to buy another Borland product again.
  34.  
  35. There is your problem: in going to a new version of the compiler, you are
  36. forced to upgrade your editing environment.
  37.  
  38. You wouldn't be suffering from such B.S. if you used your favorite editor.
  39.  
  40. Do you actually have an bugs to report about the *compiler*? 
  41.  
  42.  >Start from the maximized message window, make the active line a message about
  43.  >foo.c.  If you switch to an editor window of foo.c via the window menu or
  44.  >Cntl-F6, you get a maximized editor window with the other windows on top of it.
  45.  >Clicking cursor anywhere in another window maximizes that window.
  46.  
  47. Cry me a river...
  48.  
  49.  >I have verifed the previously reported problem with the following code:
  50.  >
  51.  >int foo(int i) {
  52.  >  int a[4];
  53.  >
  54.  >  a[0] = i;
  55.  >  a[1] = i;
  56.  >  a[2] = i;
  57.  >  a[3] = i;
  58.  >  a[0] *= 2;
  59.  >  a[1] *= 2;
  60.  >  a[2] *= 2;
  61.  >  a[3] *= 2;
  62.  >  return a[3];
  63.  >}
  64.  >
  65.  >int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,  LPSTR
  66.  >lpszCmdLine, int cmdShow) {
  67.  >    int k;
  68.  >  k = foo(1040);
  69.  >}
  70.  >
  71.  >Steps to create the problem are:
  72.  >  1) Run to line "a[1] = i;" in foo.
  73.  >  2) Watch a, i.
  74.  >  3) Inspect i;
  75.  >  4) In inspect window, change value of i to 33;
  76.  >  5) Single step to line  a[0] *= 2;
  77.  >  6) Watch window and inspect window show i =1040 again.
  78.  > 
  79.  >Note that a[1], a[2], and a[3] are assigned the proper value of 33, but as soon
  80.  >as i is no longer used it is reported incorrectly.
  81.  
  82. Maybe the use of i is optimized into a register! Did you turn off
  83. optimization before you compiled that?
  84.  
  85. Not that I'm defending Borland---I couldn't care less. But maybe you are wrong.
  86.